package com.dao;

import com.entity.Device;
import com.entity.Vehicle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface ActivityDevMapper {
    /*
    添加车辆
     */
    public int addVehicle(List<Vehicle> vehicles);

    /*
    添加设备
     */
    public int addDevice(List<Device> devices);

    /*
    查询车辆
     */
    public List<Vehicle> selectVehicles();

    /*
    查询所有设备
     */
    public List<Device> sleectDevices();

    /*
        input查询设备
     */
    public List<Device> sleectInputDevices(String parameter);


    public int updataDevice(String devID);

    public Device sleectDeviceByID(String devID );
    /*
    查询活动内所有车辆
     */
    public List<Vehicle> selectVehiclesByproID(int proID);

    /*
    删除车辆
     */
    public  int deleteVehicle(Vehicle vehicle);

    /*
        input车辆查询
        name:司机名字
     */
    public List<Device> selectInputVehicles(@Param("name") String name);

    /*
    输出设备
     */
    public  int deleteDev(String equipId);

}
